package com.zhongli.devplatform.po.user;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.zhongli.devplatform.enums.SexType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author  WuXiCheng
 * @date  2020/7/23 10:12
 * @version 1.0
 */
@ApiModel(value="com-zhongli-devplatform-po-ReadUserInfo")
@Data
@TableName(value = "read_user_info")
public class ReadUserInfoPO {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="")
    private Integer id;

    /**
     * 用户表id
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value="用户表id")
    private Integer userId;

    /**
     * 用户头像
     */
    @TableField(value = "head_img_url")
    @ApiModelProperty(value="用户头像")
    private String headImgUrl;

    /**
     * 昵称
     */
    @TableField(value = "nick_name")
    @ApiModelProperty(value="昵称")
    private String nickName;

    /**
     * 年龄
     */
    @TableField(value = "age")
    @ApiModelProperty(value="年龄")
    private Integer age;

    /**
     * 性别：0保密，1男，2女
     */
    @TableField(value = "sex")
    @ApiModelProperty(value="性别：0保密，1男，2女")
    private SexType sex;

    /**
     * 简介
     */
    @TableField(value = "introduce")
    @ApiModelProperty(value="简介")
    private String introduce;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @ApiModelProperty(value="")
    private Date createTime;

    @TableField(value = "update_time")
    @ApiModelProperty(value="")
    private Date updateTime;

    /**
     * 用户关注的人数
     */
    @TableField(value = "att_count")
    @ApiModelProperty(value="用户关注的人数")
    private Integer attCount;

    /**
     * 用户的粉丝人数
     */
    @TableField(value = "fans_count")
    @ApiModelProperty(value="用户的粉丝人数")
    private Integer fansCount;

    @TableField(value = "create_user_id",fill = FieldFill.INSERT)
    @ApiModelProperty(value="")
    private Integer createUserId;

    @TableField(value = "update_user_id")
    @ApiModelProperty(value="")
    private Integer updateUserId;


    @TableField(value = "real_name")
    @ApiModelProperty(value="真实姓名")
    private String realName;

    @TableField(value = "id_card")
    @ApiModelProperty(value="身份证号码")
    @JsonIgnore
    private String idCard;

    @TableField(value = "phone")
    @ApiModelProperty(value="手机号")
    private String phone;

}
